-
Notifications
You must be signed in to change notification settings - Fork 122
ado2gh: Support GitHubProximaPipelines service connections for --rewire-pipelines #1454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…2gh rewire-pipelines Co-authored-by: brianaj <2413532+brianaj@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for GitHub Enterprise Cloud with data residency service connections in the ado2gh generate-script --rewire-pipelines command. The tool now recognizes both standard GitHub and GitHubProximaPipelines service connection types, resolving the issue where pipeline rewiring failed for GitHub Enterprise Cloud with data residency configurations.
Key changes:
- Extended service connection type matching to include
GitHubProximaPipelinesin addition toGitHub - Added test coverage for the new service connection type
- Updated release notes to document the enhancement
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Octoshift/Services/AdoApi.cs | Modified GetTeamProjectGithubAppId to accept both GitHub and GitHubProximaPipelines service connection types using OR logic |
| src/OctoshiftCLI.Tests/Octoshift/Services/AdoApiTests.cs | Added test case GetGithubAppId_Should_Recognize_GitHubProximaPipelines_Service_Connection to verify the new service connection type is recognized |
| RELEASENOTES.md | Added user-friendly description of the new feature in the Unreleased section |
Unit Test Results 1 files 1 suites 10m 24s ⏱️ Results for commit 5eed024. ♻️ This comment has been updated with latest results. |
Description
The
ado2gh generate-script --rewire-pipelinescommand fails to recognize GitHub Enterprise Cloud with data residency service connections, which use typeGitHubProximaPipelinesinstead ofGitHub. This causes pipeline rewiring to fail despite valid service connections being configured.Changes
GetTeamProjectGithubAppIdto accept bothGitHubandGitHubProximaPipelinesservice connection typesBefore:
After:
Checklist
ThirdPartyNotices.txt(if applicable)Original prompt
ado2gh generate-script --rewire-pipelinesfor GitHub Enterprise cloud with data residency app #1453💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.